from django.urls import path
from . import views

urlpatterns = [
    path('', views.home_view, name='home'),
    path('register/', views.register_view, name='register'),
    path('login/', views.login_view, name='login'),
    path('logout/', views.logout_view, name='logout'),
    path('profile/', views.profile_view, name='profile'),
    path('profile/fragment/', views.profile_fragment_view, name='profile_fragment'),
    path('profile/data/', views.profile_data, name='profile_data'),
    path('profile/update/', views.profile_update, name='profile_update'),
    path('profile/avatar/upload/', views.profile_avatar_upload, name='profile_avatar_upload'),
    path('profile/password/change/', views.profile_password_change, name='profile_password_change'),
    # 用户管理接口
    path('users/manage/list/', views.users_list, name='users_list'),
    path('users/manage/create/', views.users_create, name='users_create'),
    path('users/manage/update/<int:user_id>/', views.users_update, name='users_update'),
    path('users/manage/delete/<int:user_id>/', views.users_delete, name='users_delete'),
]